


<%@page contentType="text/html" pageEncoding="UTF-8"  import="java.util.List, com.model.User"%>

<div id="container">

    <jsp:include page = "header.jsp" />

    <div id ="content">


        <h1>Your Profile</h1>


        <% List<User> userList = (List<User>) request.getAttribute("viewProfile");

        int currentUserIndex = userList.size() - 1;
        User currentUser = userList.get(currentUserIndex);

        %>




        <table align="center" class="table_format" cellpadding="20" cellspacing="20">

            <tr>
                <th>First Name</th>
                <td><%=currentUser.getFirstName()%></td>
            </tr>

            <tr>
                <th>Last Name</th>
                <td><%=currentUser.getLastName()%></td>
            </tr>

            <tr>
                <th>Age</th>
                <td><%=currentUser.getAge()%></td>

            </tr>

            <tr>
                <th>User Name</th>
                <td><%=currentUser.getUserName()%></td>

            </tr>

            <tr>
                <th>Password</th>
                <td><%=currentUser.getPassword()%></td>
            </tr>



        </table>



    </div>

    <jsp:include page= "footer.jsp" />

</div>